//
//  SDGroupCell.h
//  SDNestedTablesExample
//
//  Created by Daniele De Matteis on 21/05/2012.
//  Copyright (c) 2012 Daniele De Matteis. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDSubCell2.h"
#import "cImageView.h"
#import "clsExpress.h"

static const int height2 = 30;
static const int subCellHeight3 = 261;

@class SDNestedTableViewController2;
@interface SDGroupCell2 : UITableViewCell <UITableViewDelegate, UITableViewDataSource>
{
//    IBOutlet UIButton *expandBtn;
//    AllSubCellsCommand subCellsCommand;
}

@property (nonatomic, assign) SDNestedTableViewController2 *parentTable;

@property (nonatomic, strong) IBOutlet UITableView *subTable;

@property (nonatomic,assign) BOOL isExpanded;
@property (nonatomic, assign) int subCellsAmt;
@property (weak, nonatomic) IBOutlet UILabel *ExpressID;
@property (weak, nonatomic) IBOutlet UILabel *CreateDatetime;
@property (weak, nonatomic) IBOutlet UILabel *ExpressNumber;

@property (nonatomic, assign) NSInteger cellIndex;
@property (nonatomic, strong) UIImage* selectedIconImage;
@property (nonatomic, strong) UIImage* unSelectedIconImage;

//- (void)initView:(BOOL)expanded;
+ (int) getHeight;
+ (int) getsubCellHeight;
- (void)FillData:(NSDictionary *)pcls;

@end
